<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
%>
<h2 class="contentTitle">添加采购单</h2>


<div class="pageContent">
	
	<form method="post" action="<%=path %>/purchaseorder/add.do" class="pageForm required-validate" onsubmit="return validateCallback(this)">
		<div class="pageFormContent nowrap" layoutH="97">

			<dl>
				<dt>供应商：</dt>
				<dd>
					<input type="hidden" name="supplier.id" class="required"  />
					<input type="text"   name="supplier.name" class="required" readonly/>
					<a class="btnLook" href="<c:url value="/supplier/lookuplist.do"/>" lookupGroup="supplier">供应商列表</a>
				</dd>
			</dl>
			<dl>
				<dt>材料名称：</dt>
				<dd>
					<input type="hidden" name="material.id" class="required"  />
					<input type="text"   name="material.name" class="required" readonly/>
					<a class="btnLook" href="<c:url value="/material/lookuplist.do"/>" lookupGroup="material">原材料</a>
				</dd>
				<!--  
				<dd>
					<input type="text"   name="materialName" class="required"/>
				</dd>
				-->
			</dl>
			<!-- 
			<dl>
				<dt>规格厚度：</dt>
				<dd>
					<input type="text" name="thickness" class="number"/>
				</dd>
			</dl>
			 -->
			<dl>
				<dt>数量：</dt>
				<dd>
					<input type="text" name="amount" class="digits"/>
				</dd>
			</dl>
			<dl>
				<dt>单位：</dt>
				<dd>
					<input type="text" name="unit" class="required" />
				</dd>
			</dl>
			<dl>
				<dt>单价：</dt>
				<dd>
					<input type="text" name="unitPrice" class="number"/>
				</dd>
			</dl>
			<dl>
				<dt>金额：</dt>
				<dd>
					<input type="text" name="totalPrice" class="number"/>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>备注：</dt>
				<dd>
					<textarea name="remark" cols="60" rows="2"></textarea>
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>